package com.ygqh.baby.model;

import com.ygqh.baby.ao.CompleteStatus;
import com.ygqh.baby.ao.GroupMode;

import java.util.Date;

public class YgGroupBuyModel {
    private Long id;
    private Long userId;
    private Long groupId;
    private Long finishAmount;
    private Date createTime;
    private Date completeTime;
    private CompleteStatus completeStatus;

    private GroupMode groupMode;

    private Long groupAmount;
    private String nickName;
    private String headImageUrl;

    public String getGroupModeDesc() {
        return groupMode.getTitle();
    }

    public GroupMode getGroupMode() {
        return groupMode;
    }

    public void setGroupMode(GroupMode groupMode) {
        this.groupMode = groupMode;
    }

    public Date getCurrentDate() {
        return new Date();
    }

    public Date getCompleteTime() {
        return completeTime;
    }

    public void setCompleteTime(Date completeTime) {
        this.completeTime = completeTime;
    }

    public CompleteStatus getCompleteStatus() {
        return completeStatus;
    }

    public void setCompleteStatus(CompleteStatus completeStatus) {
        this.completeStatus = completeStatus;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getGroupId() {
        return groupId;
    }

    public void setGroupId(Long groupId) {
        this.groupId = groupId;
    }

    public Long getFinishAmount() {
        return finishAmount;
    }

    public void setFinishAmount(Long finishAmount) {
        this.finishAmount = finishAmount;
    }

    public Long getGroupAmount() {
        return groupAmount;
    }

    public void setGroupAmount(Long groupAmount) {
        this.groupAmount = groupAmount;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getHeadImageUrl() {
        return headImageUrl;
    }

    public void setHeadImageUrl(String headImageUrl) {
        this.headImageUrl = headImageUrl;
    }

    @Override
    public String toString() {
        return "YgGroupBuyModel [id=" + id + ", userId=" + userId + ", groupId=" + groupId + ", finishAmount=" + finishAmount + ", groupAmount=" + groupAmount
                + ", createTime=" + createTime + ", nickName=" + nickName + ", headImageUrl=" + headImageUrl + "]";
    }

}
